home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7798 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.ov.com!news
  2. From: glenn@ov.com (Fletcher.Glenn@ov.com)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Parsing an input stream?
  5. Date: 29 Feb 1996 00:14:07 GMT
  6. Organization: OpenVision
  7. Message-ID: <4h2r4f$6pb@spanky.pls.ov.com>
  8. References: <4gsep9$ho8@srvr1.engin.umich.edu>
  9. Reply-To: glenn@ov.com
  10. NNTP-Posting-Host: foghorn.pls.ov.com
  11.  
  12. In article ho8@srvr1.engin.umich.edu, newberry@news-server.engin.umich.edu (byron lee newberry) writes:
  13. >Hello,
  14. >
  15. >I am currently working on coding a symbolic manipulation program to perform
  16. >tasks such as mutliplying out large polynomials, etc.  I have a pretty
  17. >good idea how to program the beast except for the parsing of the input
  18. >stream.  I have built up a very simple parser using basic string manipulation
  19. >functions, but it is very crued.  Are libraries around that make this 
  20. >a simplier job?  It would seem to me that parsing would be a common task.
  21. >I appreciate any and all advice.  Thanks for your time.
  22. >
  23. >Byron
  24.  
  25.  
  26. The whole problem of parsing input has been addressed (at least in the UNIX
  27. domain) by a pair of program generators called "lex" and "yacc".  These
  28. programs were intended to be used together to produce a pair of code modules
  29. that are fairly easy to configure.  See the O'Reilly book called:
  30. "lex & yacc".
  31.  
  32.             Fletcher.Glenn@ov.com
  33.  
  34.  
  35.